Skip to content

fix(transformer): value => value[0] for legacyLogicalProperties to avoid duplicate !important#168

Closed
dengfuping wants to merge 1 commit intoant-design:masterfrom
dengfuping:dengfuping-fix-important
Closed

fix(transformer): value => value[0] for legacyLogicalProperties to avoid duplicate !important#168
dengfuping wants to merge 1 commit intoant-design:masterfrom
dengfuping:dengfuping-fix-important

Conversation

@dengfuping
Copy link
Contributor

} else if (matchValue.length === 1) {
// Handle like `marginBlockStart` => `marginTop`
clone[matchValue[0]] = wrapImportantAndSkipCheck(value, important);
clone[matchValue[0]] = wrapImportantAndSkipCheck(values[0], important);
Copy link
Contributor Author

@dengfuping dengfuping Dec 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • should pass split value instead of raw value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞 Duplicate !important when enable legacyLogicalPropertiesTransformer for paddingInlineStart and marginBlockStart with !important

1 participant